From: Jonathan Dieter Date: Fri, 28 Dec 2018 14:08:32 +0000 (+0000) Subject: Clean up hash when cleaning index X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~55 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=db2a78829dbe4816892461351264608b3b9e0f41;p=zchunk.git Clean up hash when cleaning index Signed-off-by: Jonathan Dieter --- diff --git a/src/lib/index/index_common.c b/src/lib/index/index_common.c index 89c9047..3456d26 100644 --- a/src/lib/index/index_common.c +++ b/src/lib/index/index_common.c @@ -47,6 +47,7 @@ void index_clean(zckIndex *index) { if(index == NULL) return; + HASH_CLEAR(hh, index->ht); if(index->first) { zckChunk *next; zckChunk *tmp=index->first;